/**
 * Created by fifths on 17-9-13.
 */

import {Directive} from '@angular/core';
import {validateMoney} from '../validators/money.validator';
import {NG_VALIDATORS} from '@angular/forms';

@Directive({
  selector: '[appValidateMoney]',
  providers: [
    {provide: NG_VALIDATORS, useValue: validateMoney, multi: true}
  ]
})
export class ValidateMoneyDirective {

  constructor() {
  }

}
